home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / intrlib1.zip / MAKEFILE.DJG < prev    next >
Text File  |  1992-03-10  |  2KB  |  74 lines

  1. #
  2. # This is the make file for the intr_lib - interaction library.
  3. # In order to run it DJGPP is assumed to be available, in addition to
  4. # Borland make (do not use the protected make from BC++ 3.0 and above - use
  5. # maker)
  6. #
  7. #                Gershon Elber, Feb 1992
  8. #
  9.  
  10.  
  11. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  12. .SWAP
  13.  
  14. # Your C compiler and linker
  15. CC = gcc
  16.  
  17. # CFLAGS = -g -DDJGCC
  18. CFLAGS = -O -DDJGCC
  19.  
  20. # Where all the include files are:
  21. INC_DIR = c:\tools\djgpp\myinclude
  22. INC = -I. -I$(INC_DIR)
  23.  
  24. #
  25. # Libs to link with
  26. #
  27. LIB_DIR = c:\tools\djgpp\mylib
  28. LIBS =  -L$(LIB_DIR) -lgr -lpc -lm
  29.  
  30.  
  31. OBJS =    cursor.o input.o intr_gen.o intr_djg.o messages.o \
  32.     pd_menus.o pu_menus.o pu_query.o saveimag.o slct_clr.o \
  33.     textwndw.o window.o
  34.  
  35. .cc.o:
  36.     $(CC) $(INC) -c $(CFLAGS) $<
  37.  
  38. .c.o:
  39.     $(CC) $(INC) -c $(CFLAGS) $<
  40.  
  41. libintr.a: $(OBJS)
  42.     ar rc libintr.a @&&!
  43. $(OBJS)
  44. !
  45.  
  46. install: libintr.a
  47.     copy libintr.a $(LIB_DIR)
  48.     ar s $(LIB_DIR)\libintr.a
  49.     copy intr_lib.h $(INC_DIR)
  50.     copy intr_gr.h $(INC_DIR)
  51.  
  52. intrtest.exe:  $(OBJS) intrtest.o
  53.     $(CC) $(CFLAGS) -o intrtest @&&!
  54. intrtest.o $(OBJS) $(LIBS) -lm
  55. !
  56. #    strip intrtest
  57. #    aout2exe intrtest
  58.  
  59. cursor.c:    intr_loc.h intr_gr.h
  60. input.c:    intr_loc.h intr_gr.h
  61. intr_gen.c:    intr_loc.h intr_gr.h
  62. intr_djg.c:    intr_loc.h intr_gr.h
  63. messages.c:    intr_loc.h intr_gr.h
  64. pd_menus.c:    intr_loc.h intr_gr.h
  65. pu_menus.c:    intr_loc.h intr_gr.h
  66. pu_query.c:    intr_loc.h intr_gr.h
  67. saveimag.c:    intr_loc.h intr_gr.h
  68. slct_clr.c:    intr_loc.h intr_gr.h
  69. textwndw.c:    intr_loc.h intr_gr.h
  70. window.c:    intr_loc.h intr_gr.h
  71.  
  72.  
  73. intrtest.c:    intr_lib.h intr_gr.h
  74.